import {BasicColumn, FormSchema} from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '会员姓名',
    dataIndex: 'userName',
    width: 120,
  },
  {
    title: '手机号',
    dataIndex: 'mobile',
    width: 120,
  },
  {
    title: '紧急手机号',
    dataIndex: 'telephone',
    width: 120,
  },
  {
    title: '卡种名称',
    dataIndex: 'goodsName',
    width: 120,
  },
  {
    title: '会员卡号',
    dataIndex: 'vipCardNo',
    width: 120,
  },
  {
    title: '卡状态',
    dataIndex: 'vipCardState',
    width: 120,
  },
  {
    title: '销售姓名',
    dataIndex: 'refundSourceType',
    width: 120,
  },
  {
    title: '开卡地',
    dataIndex: 'airportName',
    width: 120,
  },
  {
    title: '开卡日期',
    dataIndex: 'buyDate',
    width: 120,
  },
  {
    title: '支付金额',
    dataIndex: 'payAmount',
    width: 120,
  },
  {
    title: '贵宾厅服务有效期',
    dataIndex: 'viproomDate',
    width: 120,
  },
  {
    title: '贵宾厅服务状态',
    dataIndex: 'vipServerIsExpre',
    width: 120,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 120,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'userName',
    label: '姓名',
    component: 'Input',
    colProps: {span: 4}
  },
  {
    field: 'mobile',
    label: '手机号',
    component: 'Input',
    colProps: {span: 4}
  },
  {
    field: 'vipCardNo',
    label: '卡号',
    component: 'Input',
    colProps: {span: 4}
  },
  {
    field: 'employeeName',
    label: '销售/合作商',
    component: 'Input',
    colProps: {span: 4}
  },
  {
    field: 'airportId',
    label: '开卡地',
    component: 'Input',
    colProps: {span: 4}
  },
  {
    field: 'vipCardState',
    label: '状态',
    component: 'Input',
    colProps: {span: 4}
  },
  {
    field: 'startDate',
    label: '开始日期',
    component: 'DatePicker',
    colProps: {span: 5},
    componentProps: {
      valueFormat: 'YYYY-MM-DD',
      format: 'YYYY-MM-DD',
    },
  },
  {
    field: 'endDate',
    label: '结束日期',
    component: 'DatePicker',
    colProps: {span: 5},
    componentProps: {
      valueFormat: 'YYYY-MM-DD',
      format: 'YYYY-MM-DD',
    }
  }
];
